using System;
using System.Collections.Generic;
using System.Text;
using DatabaseManager.AccessDatabase;
using DatabaseManager.ExcelDatabase;

namespace DatabaseManager
{
	public class DatabaseObjectFactory
	{
		public static DatabaseObjectBase CreateDatabaseObject(DatabaseObjectType type)
		{
			switch (type)
			{
				case DatabaseObjectType.AccessDatabase:
					return new AccessDatabseObject() as DatabaseObjectBase;
				case DatabaseObjectType.ExcelDatabase:
					return new ExcelDatabaseObject() as ExcelDatabaseObject;
				default:
					return null;
			}
		}
	}
}
